package com.ssly.media.manage.util;

import java.util.HashMap;

public class R {
    public static JsonResult success() {
        return new JsonResult(1, "成功");
    }
    public static JsonResult success(String msg) {
        return new JsonResult(1, msg);
    }

    public static JsonResult success(String msg, HashMap data) {
        return new JsonResult(1, msg, data);
    }

    public static JsonResult error(String msg) {
        return new JsonResult(0, msg);
    }
}
